﻿// -----------------------------------------------------------------------
// <copyright file="App.xaml.cs" company="R&R">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

#region Imports
using System.Windows;
using System;
using System.Threading;
#endregion Imports

namespace Domino
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        /// <summary>
        /// 
        /// </summary>
        [STAThread()]
        static void Main()
        {
            Splasher.Splash = new Splash();
            Splasher.ShowSplash();

            // Simulate application loading
            for (int i = 0; i < 5000; i++)
                MessageListener.Instance.ReceiveMessage(String.Format("Load module {0}", i)); Thread.Sleep(1);

            new App();
        }

        /// <summary>
        /// 
        /// </summary>
        public App()
        {
            StartupUri = new Uri(@"Views\GameBoard.xaml", UriKind.Relative);
            Run();
        }
    }
}
